<!--
  Generated template for the HomePage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<extendheader [title]="title">
  <div class="avatarbox left">
    <img class="useravatar" src="./assets/imgs/icon.png" alt="" (click)="goPersonal()">
    <span class="username" (click)="goPersonal()">{{username}}</span>
  </div>
  <ion-icon class="setting right" (click)="goSettings()" name="settings"></ion-icon>
</extendheader>

<ion-content>
  <ion-refresher (ionRefresh)="doRefresh($event)" pullMax="60">
    <ion-refresher-content pullingIcon="arrow-dropdown" pullingText="下拉加载" refreshingSpinner="circles" refreshingText="数据加载中...">
    </ion-refresher-content>
  </ion-refresher>
  <div class="subbg">
    <div class="msgbox">
      <p class="description"><span *ngIf="username">{{username}}，</span>你好</p>
      <p class="description">欢迎使用文什云MES移动平台。</p>
    </div>
  </div>

  <div class="actionbtnbox">
    <actionbtn *ngFor="let action of homeList" [name]="action" (click)="actionhandler(action.url)"></actionbtn>
  </div>
</ion-content>
